﻿using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Maticsoft.DBUtility;//Please add references
namespace Maticsoft.DAL
{
   public class BaseSql
    {
        /// <summary>
		/// 执行返回数据集
		/// </summary>
		public DataSet getList(string pSql)
		{
          DataSet ds= DbHelperSQL.Query(pSql);
          if (null == ds || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0)
          {
              return null;
          }
          else
          {
              return ds;
          }
		}
    }
}
